package com.bytecub.protocol.plugin.myfire;

import com.bytecub.common.annotations.BcProtocolAnnotation;
import com.bytecub.common.domain.message.DeviceDownMessage;
import com.bytecub.common.domain.message.DeviceReportMessage;
import com.bytecub.protocol.base.IBaseProtocol;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Slf4j
@Data
@BcProtocolAnnotation(name = "FL-NBIOT协议", protocolCode = "fl-nbiot", desc = "演示协议")
@Component
public class FlnbiotProtocolService implements IBaseProtocol {
    @Override
    public DeviceReportMessage decode(String topic, String deviceId, byte[] payload) {
        return null;
    }

    @Override
    public byte[] encode(String topic, String deviceCode, DeviceDownMessage deviceDownMessage) {
        return new byte[0];
    }

    @Override
    public byte[] encodeBatch(String deviceCode, List<DeviceDownMessage> deviceDownMessages) {
        return new byte[0];
    }
}
